package com.rfs.design.chain.test;

import com.rfs.design.chain.BusinessProcess;
import com.rfs.design.chain.ProcessContext;
import com.rfs.dto.ResponseDTO;
import org.springframework.stereotype.Service;

/**
 * @author renfushuai
 * @date 2022/8/29
 */
@Service
public class SendMsgAction implements BusinessProcess<SendTaskDto> {
    @Override
    public void process(ProcessContext<SendTaskDto> context) {
        context.setResponse(ResponseDTO.succData(context.getProcessModel()));
        System.out.println("发送短信:"+context.getProcessModel().getMsgContext());
    }
}
